<?php


namespace Qwadmin\Controller;

class MyjiController extends ComController
{
    public function ji()
    {
        $yue = date('m');
        $list = M('people')->where(['uid'=>$_SESSION['uid'],'yue'=>$yue])->select();
        $time = date('Y').'-'.$list[0]['yue'].'月份';
        // P($list);
        $this->assign('list',$list);
        $this->assign('time',$time);
        $this->display();
        
    }










    public function mian()
    {
        $yue = date('m');
        $list = M('type')->where(['uid'=>$_SESSION['uid'],'yue'=>$yue,'type'=>'绩效面谈表'])->select();
        // P($list);
        // exit;
        $off = $list[0]['off'];
        if ($off == '1') {
            $flist = M('mian')->where(['uid'=>$_SESSION['uid'],'yue'=>$yue,'off'=>1])->select();
            // dump($flist);
            // exit;
           
           
        }
       
        $time = date('Y').'-'.$list[0]['yue'].'月份';
        $this->assign('list',$list);
        $this->assign('flist',$flist);
        $this->assign('off',$off);
        

        $this->assign('time',$time);
        $this->display();
    }












    public function fu()
    {
        $yue = date('m');
        $list = M('type')->where(['uid'=>$_SESSION['uid'],'yue'=>$yue,'type'=>'绩效辅导表'])->select();
        // P($list);
        // exit;
        $off = $list[0]['off'];
        if ($off == '1') {
            $flist = M('fu')->where(['uid'=>$_SESSION['uid'],'yue'=>$yue,'off'=>1])->select();
            // dump($flist);
            // exit;
            $uname = $flist[0]['uname'];
            $post = $flist[0]['post'];
            $ment = $flist[0]['ment'];
            $pname = $flist[0]['pname'];
            $yue = $flist[0]['yue'];
            $this->assign('uname',$uname);
            $this->assign('post',$post);
            $this->assign('ment',$ment);
            $this->assign('pname',$pname);
            $this->assign('yue',$yue);
           
        }
       
        $time = date('Y').'-'.$list[0]['yue'].'月份';
        $this->assign('list',$list);
        $this->assign('flist',$flist);
        $this->assign('off',$off);
        

        $this->assign('time',$time);
        $this->display();
    }




}